home *** CD-ROM | disk | FTP | other *** search
- Path: grafix.xs4all.nl!john.hendrikx
- Date: Fri, 12 Jan 96 00:40:20 GMT+1
- Newsgroups: comp.sys.amiga.programmer
- Distribution: world
- Subject: Re: Protection bits
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
- Message-ID: <john.hendrikx.45jy@grafix.xs4all.nl>
- Organization: Grafix Attack BBS Holland
-
- In a message of 10 Jan 96 S.e. Morris wrote to All:
-
- >> Maybe the filesystem could be extended with somekind of hook which sets
- >> the file-type correctly by looking at the first 512-bytes of the file
- >> when it is first written/modified. It would be an automatic FileID-ing
- >> system which could be extended with new FileID's which the file system
- >> could recognise and store as a FileID long in the fileinfoblock.
-
- >> When I come to think of it this doesn't seem all that hard to do and it
- >> would probably not even slow down the filesystem. I mean, taking a peek
- >> at the first 512 bytes as it is written shouldn't be that hard. The only
- >> trouble is that 512 bytes might not be sufficient to make a FileID...
-
- >> This would make doing a directory with FileID's and with only IFF files
- >> in them really fast, like on the MAC's (even though they use an even more
- >> extensive, but unfortunately not always reliable system (you sometimes
- >> need to set the FileType correctly yourself...)).
-
-
- SeM> Why not store this infomation in the file's .info file?
-
- Speed. Doing an Examine() on a file is much faster than doing Open(), Read()
- and Close().
-
- SeM> This kind of auto-recognition of files isn't a feature you would expect
- SeM> a command line shell to have --- it's a bit too high level for that
- SeM> IMHO.
-
- SeM> But the GUI is intended as a 'high-level' interface which goes out of
- SeM> it's way to be friendly and helpful (supposedly!). So storing a field
- SeM> in the .info with the file type would be ideal. The Workbench *has* to
- SeM> load the .info files anyway --- so the speed descrease would be
- SeM> practically non-existant!
-
- Workbench? Well, it could be used for Workbench as well, but slightly
- differently. The Workbench could display special icons for files which don't
- have a .info file based on the FileID LONG stored in the FileHeader.
-
- Grtz John
-
- -----------------------------------------------------------------------
- John.Hendrikx@grafix.xs4all.nl TextDemo/FastView/Etc... development
- -----------------------------------------------------------------------
- -- Via Xenolink 1.981, XenolinkUUCP 1.1
-